import http from '@/common/luchApi/index.js'
const objToUrl = obj => {
	let arr = [];
	for (let i in obj) {
		if (obj.hasOwnProperty(i)) {
			arr.push(encodeURIComponent(i) + "=" + encodeURIComponent(obj[i]));
		}
	}
	return arr.join("&");
}

export default {
	// 授权登录(用户端)
	authorization(param) {
		return http.get('staff/authorization', param)
	},
	//识别身份证信息
	ocrIdCard(param){
		return http.get('staff/ocrIdCard', param)
	},
	//获取ocr是否开启配置
	getOcrCfg(param){
		return http.get('staff/getOcrCfg', param)
	},
}
